package com.GGG.cloud.house.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author 李卓
 * @version 1.0
 * @desc
 * @date 2020/9/29  15:15
 * @copy 老九学堂
 * @address 四川.成都西部国际金融中心
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/static/**").addResourceLocations("classpath*:/static/");
    }
}
